package com.fire.control.system.support.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class StaticValue {
	
	public static final String[] excludeUrls = {
			"/app/LoginCtr/",
			"/web/loginCtr/",
			"/test/",
			"/public/",
			"/error"
			};
	
	public static String lora_company_level;//机构级别
	public static String lora_company_secret_key;//秘钥(生成密码)
	public static long offline_duration_minutes;//设备检测-离线时间最大值
	public static String deviceDetectionJob_cron;//设备检测job cron表达式
	public static String dutyDetectionJob_cron;//值班检测job cron表达式
	public static String file_upload_path;//文件上传路径
	public static String  lora_view_path;//页面访问路径
	public static String download_android_url;//安卓下载地址
	public static String download_ios_url;//ios下载地址
    public static String active;//当前部署环境
	public static final String device_type_id = "dt52360462044257a463c034e4a310a2"; // 默认给定类型为烟感的id
	public static String yupian_apikey;//云片apikey
	public static String file_server_domain;//文件服务器地址
	public static String wss_server_domain;//websocket通讯地址
	public static int wss_server_port;//websocket端口
	
	@Value("${wss.server.port}")
	public void setWss_server_port(int wss_server_port) {
		StaticValue.wss_server_port = wss_server_port;
	}

	@Value("${server.host}:${wss.server.port}")
	public void setWss_server_domain(String wss_server_domain) {
		StaticValue.wss_server_domain = wss_server_domain;
	}

	@Value("${lora.view.path}")
	public void setLora_view_path(String lora_view_path) {
		StaticValue.lora_view_path = lora_view_path;
	}

	@Value("${server.host}:${server.port}/file/download/android")
	public void setDownload_android_url(String download_android_url) {
		StaticValue.download_android_url = download_android_url;
	}

	

	@Value("${yupian.apikey}")
	public void setYupian_apikey(String yupian_apikey) {
		StaticValue.yupian_apikey = yupian_apikey;
	}
	
	@Value("${server.host}:${server.port}")
	public void setFile_server_domain(String file_server_domain) {
		StaticValue.file_server_domain = file_server_domain;
	}
	
	

	@Value("${lora.offline.duration.minutes}")
	public void setOffline_duration_minutes(long offline_duration_minutes) {
		StaticValue.offline_duration_minutes = offline_duration_minutes;
	}

	@Value("${lora.company.level}")
	public void setLora_company_level(String lora_company_level) {
		StaticValue.lora_company_level = lora_company_level;
	}

	@Value("${lora.quartz.deviceDetectionJob.cron}")
	public void setDeviceDetectionJob_cron(String deviceDetectionJob_cron) {
		StaticValue.deviceDetectionJob_cron = deviceDetectionJob_cron;
	}

	@Value("${lora.quartz.dutyDetectionJob.cron}")
	public void setDutyDetectionJob_cron(String dutyDetectionJob_cron) {
		StaticValue.dutyDetectionJob_cron = dutyDetectionJob_cron;
	}

	@Value("${file.upload.path}")
	public void setFile_upload_path(String file_upload_path) {
		StaticValue.file_upload_path = file_upload_path;
	}

	@Value("${download.ios.url}")
	public void setDownload_ios_url(String download_ios_url) {
		StaticValue.download_ios_url = download_ios_url;
	}

	@Value("${spring.profiles.active}")
	public void setActive(String active) {
		StaticValue.active = active;
	}

	@Value("${lora.company.secret.key}")
	public void setLora_company_secret_key(String lora_company_secret_key) {
		StaticValue.lora_company_secret_key = lora_company_secret_key;
	}

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
